﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Teigha.Runtime;

namespace Com.OpenCode.DwgConvert.Model
{
    public static class DataConvertService
    {
        private static Services _Services;

        /// <summary>
        /// 启动引擎
        /// </summary>
        public static void StartEngine()
        {
            if (_Services == null)
            {
                _Services = new Services();
            }
        }

        /// <summary>
        /// 停止引擎
        /// </summary>
        public static void StopEngine()
        {
            if (_Services != null)
            {
                _Services.Dispose();
            }
        }
    }
}
